package fancyfoods.persistence;

import javax.persistence.Entity;
import javax.persistence.Id;


@Entity(name = "FOOD")
public class FoodImpl{
	@Id
	private String name;
	private double price;
	private int quantityInStock;

	public FoodImpl() {
	}

	public FoodImpl(String name, double price, int quantity) {
		this();
		this.name = name;
		this.price = price;
		this.quantityInStock = quantity;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setQuantityInStock(int quantityInStock) {
		this.quantityInStock = quantityInStock;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getName() {
		return name;
	}

	public double getPrice() {
		return price;
	}

	public int getQuantityInStock() {
		return quantityInStock;
	}

}
